package cn.learn.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2021年04月27日15:40
 */
@Component
@FeignClient(contextId = "remoteService", name = "remoteService", url = "http://192.168.1.101:8009", fallbackFactory = RemoteServiceFallbackFactory.class)
public interface RemoteService {

    @PostMapping(value = "/remoteService", consumes = {MediaType.APPLICATION_JSON_VALUE})
    RestResponse<String> doublyCreateWorkflow(DoublyStochastic doublyStochastic);

}
